package com.muyu.remote.factory;

import com.muyu.danmo.domain.DanmoInformationBasic;
import com.muyu.remote.DanmoBasicService;
import org.springframework.cloud.openfeign.FallbackFactory;

import java.util.List;

/**
 * DanmoBasicFactory
 *
 * @author LeYang
 * on 2025/4/4
 */
public class DanmoBasicFactory implements FallbackFactory<DanmoBasicService> {

    @Override
    public DanmoBasicService create(Throwable cause) {
        return new DanmoBasicService() {


            @Override
            public DanmoInformationBasic getInfoUser(Long userid) {
                return  this.getInfoUser(userid);
            }

            @Override
            public List<DanmoInformationBasic> selectUserList(List<Long> longs) {
                return this.selectUserList(longs);
            }
        };
    }
}
